From: Jan-Michael Brummer Date: Thu, 7 Jun 2018 15:52:18 +0000 (+0200) Subject: windowManager: Add top edge drag gesture to unmake fullscreen window X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~4^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=304c667bca9b303195f94e9d278c5f9d5bc7bcb7;p=gnome-shell.git windowManager: Add top edge drag gesture to unmake fullscreen window Fullscreen windows cannot be restored by touch device users unless the application adds support for it. As it is unlikely to change all application lets introduce a top edge drag gesture which unmakes fullscreen windows. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/123 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index bab93a03e..b831071a0 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -999,6 +999,14 @@ var WindowManager = new Lang.Class({ Main.keyboard.show(Main.layoutManager.bottomIndex); }); global.stage.add_action(gesture); + + gesture = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode); + gesture.connect('activated', () => { + let currentWindow = global.display.focus_window; + if (currentWindow) + currentWindow.unmake_fullscreen(); + }); + global.stage.add_action(gesture); }, _showPadOsd(display, device, settings, imagePath, editionMode, monitorIndex) {